package com.fm.service;

import com.fm.common.ResultResponse;
import com.fm.pojo.Product;
import com.github.pagehelper.PageInfo;

public interface IProductService {

    ResultResponse saveOrUpdateProduct(Product product);

    ResultResponse<String> delProduct(String productId);

    ResultResponse<String> refreshTime(String productId,int days);

    ResultResponse<String> updateStatus(String productId,int days);

    ResultResponse<PageInfo> getProductList(int pageNum, int pageSize);

    ResultResponse<PageInfo> getMyProductList(String userId,int pageNum, int pageSize);

    ResultResponse getProductDetail(String produceId);
}
